package com.ruoyi.robot.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author yid
 * @since 2023-01-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Essay对象", description="")
public class Essay implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一标识")
    @TableId(value = "essay_id", type = IdType.AUTO)
    private Long essayId;

    @ApiModelProperty(value = "文章标题")
    private String essayTitle;

    @ApiModelProperty(value = "文章内容")
    private String essayContent;

    @ApiModelProperty(value = "文章作者")
    private String essayAuthor;

    @ApiModelProperty(value = "创建日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime essayTime;

    @ApiModelProperty(value = "0/1(1置顶)")
    private Integer isTop;

    @ApiModelProperty(value = "封面路径")
    private String photoUrl;


}
